#include <Poco/Net/ServerSocket.h>
#include <Poco/Net/SocketStream.h>
#include <Poco/Net/StreamSocket.h>

/* c++ cpp rest sdk */
#include <cpprest/http_client.h>           //HTPP client
#include <cpprest/filestream.h>
//#include <cpprest/http_listener.h>              // HTTP server
//#include <cpprest/json.h>                       // JSON library
//#include <cpprest/uri.h>                        // URI library
//#include <cpprest/ws_client.h>                  // WebSocket client
//#include <cpprest/containerstream.h>            // Async streams backed by STL containers
//#include <cpprest/interopstream.h>              // Bridges for integrating Async streams with STL and WinRT streams
//#include <cpprest/rawptrstream.h>               // Async streams backed by raw pointer to memory
//#include <cpprest/producerconsumerstream.h>     // Async streams for producer consumer scenarios


#include <iostream>
using namespace std;

int main(int argc, char **argv)
{
    
    
    
    //    //绑定端口，并开始监听：
    //    Poco::Net::ServerSocket srv(9000);
    //    //服务主循环：
    //    while (true)    {
    //        //接受连接：
    //        Poco::Net::StreamSocket streamSocket = srv.acceptConnection();
    //        //向 Socket 发送数据：
    //        Poco::Net::SocketStream socketStream(streamSocket);
    //        socketStream << "HTTP/1.0 200 OK\r\n"
    //        << "Content-Type: text/html\r\n"
    //        << "\r\n"
    //        << "<html><head><title>My 1st Web Server</title></head></html>"
    //        << std::flush;
    //    }
    return 0;
}




















